<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
  <head>
    <title>Lab 3</title>
  </head>
  	<body>
  		<?php
  		
  			//validation for the input
  			//isset or not
			if(isset($_REQUEST['firstName'])&& isset($_REQUEST['lastName'])){
				//print the information
				echo "Hello <i>".$_REQUEST['firstName']." " . $_REQUEST['lastName']."</i>";
			}else{
			?>	
		
			
		<form method="post" action="./index.php">
			<p>
			What's your first name? <input type="text" name="firstName" />
			<br />
			What's your last name? <input type="text" name="lastName" />
			<br />
			<input type="submit" name="submit" value="Submit" />
			</p>
		</form>
		
		<?php	
			//closing the if statement		
			}
		?>
	</body>
</html>